home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / util / TreeMap$Entry.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.6 KB  |  50 lines

  1. package java.util;
  2.  
  3. final class TreeMap$Entry<K, V> implements Map.Entry<K, V> {
  4.    K key;
  5.    V value;
  6.    TreeMap$Entry<K, V> left = null;
  7.    TreeMap$Entry<K, V> right = null;
  8.    TreeMap$Entry<K, V> parent;
  9.    boolean color = true;
  10.  
  11.    TreeMap$Entry(K var1, V var2, TreeMap$Entry<K, V> var3) {
  12.       this.key = var1;
  13.       this.value = var2;
  14.       this.parent = var3;
  15.    }
  16.  
  17.    public K getKey() {
  18.       return this.key;
  19.    }
  20.  
  21.    public V getValue() {
  22.       return this.value;
  23.    }
  24.  
  25.    public V setValue(V var1) {
  26.       Object var2 = this.value;
  27.       this.value = var1;
  28.       return (V)var2;
  29.    }
  30.  
  31.    public boolean equals(Object var1) {
  32.       if (!(var1 instanceof Map.Entry)) {
  33.          return false;
  34.       } else {
  35.          Map.Entry var2 = (Map.Entry)var1;
  36.          return TreeMap.valEquals(this.key, var2.getKey()) && TreeMap.valEquals(this.value, var2.getValue());
  37.       }
  38.    }
  39.  
  40.    public int hashCode() {
  41.       int var1 = this.key == null ? 0 : this.key.hashCode();
  42.       int var2 = this.value == null ? 0 : this.value.hashCode();
  43.       return var1 ^ var2;
  44.    }
  45.  
  46.    public String toString() {
  47.       return this.key + "=" + this.value;
  48.    }
  49. }
  50.